package cn.hesion.springcloud.service;
/**
 * ClassName: PaymentHystrixService <br/>
 * Description: <br/>
 * date: 2020/8/30 14:17<br/>
 *
 * @author Hesion<br />
 * @version
 * @since JDK 1.8
 */

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: springcloud
 * @description:
 * @author: hesion
 * @create: 2020-08-30 14:17
 **/
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT")
public interface PaymentHystrixService {
    @GetMapping("/payment/hystrix/ok/{id}")
   public String  paymentInfoOk(@PathVariable("id") Integer id);

    @GetMapping("/payment/hystrix/timeout/{id}")
    public String  paymentInfoTimeout(@PathVariable("id") Integer id);
}
